<template>
	<view class="">
		<button @click="clickShowModal">点击</button>
		<button @click="clickHidden">点击隐藏</button>
		<button @click="clickActionSheet">学历</button>
	</view>
</template>

<script setup>
	uni.showNavigationBarLoading()
	setTimeout(()=>{
		uni.hideNavigationBarLoading()
		uni.setNavigationBarTitle({
			title:"测试动态标题"
		})
	},2000)
	let list = ["高中","大专","研究生","本科"];
	function clickShowModal(){
		uni.showModal({
		title: '提示',
		//content: '这是一个模态弹窗',
		//showCancel:false,
		cancelText:"取消1",
		cancelColor:"#678787",
		confirmText:"确认",
		confirmColor:"#f0ad4e",
		editable:true,
		placeholderText:"请输入验证码",
	
		success: function (res) {
			if (res.confirm) {
				uni.showToast({
					title:res.content,
				});
				console.log('用户点击确定');
			
			} else if (res.cancel) {
			    console.log('用户点击取消');
			}
		}
		});
	}
    function clickActionSheet(){
		uni.showActionSheet({
			title:"学历选择",
			itemList: list,
			itemColor:"#798998",
			success: (e) => {
				console.log(list[e.tapIndex]);
			}
		})
	}
</script>

<style lang="scss" scoped>
</style>
